﻿<UserControl x:Class="VAdvantage.KnowledgeBase.ImageTextControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" 
    mc:Ignorable="d"
    d:DesignHeight="100" d:DesignWidth="150">

    <UserControl.Resources>

    </UserControl.Resources>


    <Grid x:Name="LayoutRoot" MouseEnter="LayoutRoot_MouseEnter" MouseLeave="LayoutRoot_MouseLeave">
        <Border x:Name="border" Background="Transparent"  Opacity=".8" BorderBrush="#FF6DBDD1"  BorderThickness="1" CornerRadius="1"></Border>
        <Grid Margin="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Border  BorderBrush="#b5c5d4" BorderThickness="1"  MouseLeftButtonUp="Border_MouseLeftButtonUp" CornerRadius="1">
                <Grid>
                    <Image x:Name="img" Stretch="Fill"  Margin="0" ></Image>
                    <Image VerticalAlignment="Center" Source="../Images/YTPlay.png" Cursor="Hand" Visibility="Collapsed" Stretch="None" HorizontalAlignment="Center"  x:Name="imgYT" MouseLeftButtonUp="imgYT_MouseLeftButtonUp"  Margin="0" ></Image>
                    <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Right" Visibility="Collapsed" Background="Black" x:Name="stYT">
                    <TextBlock x:Name="txtYT" Foreground="Red"  VerticalAlignment="Bottom" Text="0:00:00" HorizontalAlignment="Right" />
                    </StackPanel>
                </Grid>
            </Border>
            <TextBlock TextWrapping="Wrap" Grid.Row="1" TextAlignment="Left"  VerticalAlignment="Center" Margin="2"  FontSize="18" FontWeight="Bold"  x:Name="txtDesc"></TextBlock>
            <Button Grid.Row="1" x:Name="btnAction" Visibility="Collapsed"  BorderThickness="0" VerticalAlignment="Center" HorizontalAlignment="Right" Click="btnAction_Click"  >
                <Image x:Name="imgAction" Stretch="None"></Image>
            </Button>
            <ScrollViewer x:Name="svText" Grid.Row="2" SizeChanged="ScrollViewer_SizeChanged" BorderThickness="0"   Margin="2,2,2,4"  VerticalAlignment="Stretch"  HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                <TextBlock TextWrapping="Wrap" Text="Topic" SizeChanged="txtHelp_SizeChanged" VerticalAlignment="Center" TextAlignment="Center" x:Name="txtHelp"></TextBlock>
            </ScrollViewer>
        </Grid>

    </Grid>
</UserControl>
